package com.cmy.framework.mvvm.mvvm.view

import androidx.activity.viewModels
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.ViewModel
import com.cmy.framework.mvvm.mvvm.view_model.BaseViewModel

/**
 * @name:
 *  BaseVMAvtivity
 * @package:
 *  com.cmy.framework.mvvm.mvvm.view
 * @date:
 *  2023/4/2811:21
 * @author
 *    cmy
 * @description
 *
 */
abstract class BaseVMActivity<VM: BaseViewModel,VB : ViewDataBinding> : BaseVBActivity<VB>(){


    protected var mViewModel : VM? = null

    override fun setWindowConfigure() {
        super.setWindowConfigure()
//        mViewModel = createViewModel<VM>()

    }

//
//    /**
//     * 创建一个VIewModel
//     */
//    protected  inline fun  <reified VM :ViewModel> createViewModel() :Lazy<VM>{
//        return viewModels<VM>()
//    }
//




}